package com.tq.bean;

import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;


@Scope("prototype")
@Data
public class ResultData<T> {
    private String error_no;
    private String error_info;
    private T data;

    public ResultData(String error_no, String error_info) {
        this.error_no = error_no;
        this.error_info = error_info;
    }

    public ResultData(String error_no, String error_info, T data) {
        this.error_no = error_no;
        this.error_info = error_info;
        this.data = data;
    }

    public  String sayHello(){
        return  "547";
    }
}
